﻿using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using W.M.Materiel.Application.IServices;

namespace W.M.Materiel.Read.API.Controllers
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class Finished_products_tableController : ControllerBase
    {
        private readonly IFinished_products_tableServices finished_Products_TableServices;

        public Finished_products_tableController(IFinished_products_tableServices finished_Products_TableServices)
        {
            this.finished_Products_TableServices = finished_Products_TableServices;
        }

        /// <summary>
        /// 显示成品类型
        /// </summary>
        /// <returns>统一返回格式</returns>
        [HttpGet]
        public async Task<IActionResult> GetFinished_products_table()
        {
            var list = await finished_Products_TableServices.GetFinished_products_table();
            return Ok(list);
        }
    }
}
